#include "func.h"

int change(char *s)
{
    int tmp = 0;
    if(my_strcmp(s,"ADD")== 0)
    {
        tmp = 1;
    }
    else if(my_strcmp(s,"SEE")== 0)
    {
        tmp = 2;
    }
    else if(my_strcmp(s,"SEARCH")== 0)
    {
        tmp = 3;
    }
    else if(my_strcmp(s,"DELETE")== 0)
    {
        tmp = 4;
    }
    else if(my_strcmp(s,"UPDATE")== 0)
    {
        tmp = 5;
    }
    else if(my_strcmp(s,"EXIT")== 0)
    {
        tmp = 0;
    }
    else
    {
        return -1;
    }
    return tmp;

}